﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Batalha_Estelar
{
    class GameConfig
    {
        private static GameConfig current = null;

        public static GameConfig GetCurrent()
        {
            if (current == null)
            {
                current = new GameConfig();
            }

            return current;
        }

        private GameConfig()
        {
            this.FieldWidth = 550;
            this.FieldHeight = 600;

            this.RootDirectory = "Content";
            this.GameSpeed = 1;
            this.Difficulty = GameDifficulty.Normal;
            this.BackGroundColor = Color.Black;

            this.Player1_StartPosition = new Vector2(250.0f, 540.0f);
            Enemies = 3;
        }

        public int FieldWidth { get; set; }
        
        public int FieldHeight { get; set; }
        
        public string RootDirectory { get; set; }

        public float GameSpeed { get; set; }

        public GameDifficulty Difficulty { get; set; }

        public Color BackGroundColor { get; set; }

        public Vector2 Player1_StartPosition { get; set; }

        public int Enemies { get; set; }
    }

    public enum GameDifficulty
    {
        Easy = -1, Normal = 0, Hard = 1
    }
}
